from PyQt5.QtCore import QThread, pyqtSignal
import time


class StartThread(QThread):
    _signal = pyqtSignal(int)

    def __init__(self):
        super(StartThread, self).__init__()

    def run(self):
        time.sleep(3000)
        self._signal.emit(0)

    def connect(self, func):
        self._signal.emit(func)
